const $http = window.$http;
// 获取用户列表
export function getUserPage (params) {
  return $http.request({ method: 'get', url: "/supervise/user/queryPage", params });
}

// 用户冻结
export function stopUser (params) {
  return $http.request({ method: 'put', url: "/supervise/user/stopUser", params });
}

// 用户启用
export function startUser (params) {
  return $http.request({ method: 'put', url: "/supervise/user/enableUser", params });
}


// 用户密码重置
export function resetPassword (params) {
  return $http.request({ method: 'put', url: "/supervise/user/resetPassword", params });
}

// 通过postId查询用户列表
export function getUserByPostId (params) {
  return $http.request({ method: 'get', url: "/supervise/user/getUserByPostId", params });
}
export function getUserByParams (params) {
  return $http.request({ method: 'get', url: "/supervise/user/getUserByDeptIdOrPostId", params });
}

// 通过userId查询用户部门
export function getUserDepartByUserId (params) {
  return $http.request({ method: 'get', url: "/supervise/user/getUserDepartByUserId", params });
}

// 获取用户列表
export function getUserList (params) {
  return $http.request({ method: 'get', url: "/supervise/user/getUserList", data: params });
}


// 通过roleId查询用户列表
export function getUserByRoleId (params) {
  return $http.request({ method: 'get', url: "/supervise/user/getUsersByRoleId", params });
}

// 基础信息
export function getLoginTenant (params) {
  return $http.request({ method: 'get', url: "/supervise/tenant/getLoginTenant", params });
}




